/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Administrator
 */
public class XoayPhai90 {
     public static void Xoay(PixelAnh pix) {
        Pixel[][] data = pix.getData();

        Pixel[][] temp = pix.getData();

        for (int dong = 0; dong < pix.getHeight(); dong++)
       {
            for (int cot = 0; cot < pix.getWidth(); cot++)
            {  
                 data[dong][cot]=temp[pix.getWidth()-cot-1][dong];
            }
        }
        pix.setData(data);
    }
    
}
